<?php

/*

Change Club Info (club_change.php)

*/

$page_title = "Change Club Info";
$rank_check = 1;
include "header.inc.php";
$clubrank_check = 3;
$page_heading = "Home";
include "club.inc.php";

$get_page = fetch("SELECT * FROM club_pages2 WHERE page = '1' AND club = '$clubid' AND game = '$game'");

echo $openHTML;
echo $startClub;

ECHO <<<END

<P><FORM ACTION="$base_url/club_change.pro.php?game=$game&clubid=$clubid" enctype="multipart/form-data" METHOD=POST>
   <CENTER><TABLE BGCOLOR="$tableOutline" CELLSPACING=1 CELLPADDING=0 WIDTH=400>
      <TR BGCOLOR="$topAndBottomBG">
         <TD COLSPAN=2 HEIGHT=50>
            <CENTER><FONT SIZE="+2" COLOR="$topAndBottomText">--Edit Club--</FONT></CENTER>
         </TD>
      </TR>
      <TR BGCOLOR="$maincellColor">
         <TD WIDTH=128 HEIGHT=40>
            <P>Club Name</P>
         </TD>
         <TD HEIGHT=40>
            <P><FONT SIZE="-1">&nbsp;<INPUT TYPE=text NAME="edit_club_name" VALUE="$getclub[name]" SIZE=30 MAXLENGTH=32></FONT></P>
         </TD>
      </TR>
      <TR BGCOLOR="$middleBG">
         <TD WIDTH=128 HEIGHT=40>
            <P>Motto:</P>
         </TD>
         <TD HEIGHT=40>
            <P><INPUT TYPE=text NAME="edit_club_slogan" VALUE="$getclub[motto]" SIZE=30 MAXLENGTH=32></P>
         </TD>
      </TR>
      <TR BGCOLOR="$maincellColor">
         <TD WIDTH=128 HEIGHT=40>
            <P>Club Info</P>
         </TD>
         <TD HEIGHT=40>
            <P><FONT SIZE="-1">&nbsp;<TEXTAREA NAME=club_info ROWS=7 COLS=27 WRAP=virtual>$get_page[data]</TEXTAREA></FONT></P>
         </TD>
      </TR>
      <TR>
         <TD COLSPAN=2 HEIGHT=30 BGCOLOR="$topAndBottomBG">
            <CENTER><FONT SIZE="-1" COLOR="$topAndBottomText"><I><INPUT TYPE=submit NAME=Submit VALUE="Edit Club!!"></I></FONT></CENTER>
         </TD>
      </TR>
   </TABLE>
   </CENTER>
</FORM></P>

END;

echo $endClub;
echo $closeHTML;

?>